Skip to content

Commit

Permalink
DIRECTOR: Remove std::swap usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sev- committed May 14, 2024
1 parent 03f247c commit e333fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/director/lingo/lingodec/handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,7 +659,7 @@ uint32 Handler::translateBytecode(Bytecode &bytecode, uint32 index) {
break;
case kOpSwap:
if (stack.size() >= 2) {
std::swap(stack[stack.size() - 1], stack[stack.size() - 2]);
SWAP(stack[stack.size() - 1], stack[stack.size() - 2]);
} else {
warning("kOpSwap: Stack too small!");
}
Expand Down

0 comments on commit e333fd0

Please sign in to comment.